package com.study.dangdang.sharding.jdbc.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import com.study.dangdang.sharding.jdbc.entity.Student;
import com.study.dangdang.sharding.jdbc.mapper.StudentMapper;
import com.study.dangdang.sharding.jdbc.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {

	@Resource
	public StudentMapper studentMapper;

	public boolean insert(Student student) {
		return studentMapper.insert(student) > 0 ? true : false;
	}

}